package com.mocksamples.subscriber
{
	public class Publisher
	{
    	private var subscriber:Subscriber = new NullSubscriber();

    	public function add(subscriber:Subscriber):void {
	        this.subscriber = subscriber;
	    }
 
	    public function publish(message:String):void {
        	this.subscriber.receive(message);
    	}		
	}
}

import com.mocksamples.subscriber.Subscriber;	
// Inner Class
class NullSubscriber implements Subscriber {
	public 	function receive(message:String):void{}
}
	
